
function* fn () {
    yield 1;
    yield 2;
    yield 3;

}


for( let v of fn()) {

    console.log(v);
}